#pragma once
#include <QString>

namespace apollo
{
	namespace core
	{
		class CommandConfig
		{
			static const int DEFAULT_TIME_OUT = 30000; //ms
		public:
			enum CommandType {ONE_WAY, REQUEST, MESSAGE};
		public:
			QString commandName;
			QString connectionName;
			CommandType type;
			QString action;
			bool isPrimary;
			int timeout;
		public:
			CommandConfig(void): timeout(DEFAULT_TIME_OUT), type(REQUEST), isPrimary(false){}
			//~CommandConfig(void){}
		};

	}}
